package cn.good.mapper;

import cn.good.pojo.Attention;
import cn.good.pojo.AttentionKey;
import org.apache.ibatis.annotations.Param;

public interface AttentionMapper {
    int deleteByPrimaryKey(AttentionKey key);

    //关注医生
    int insert(Attention record);
    //取关医生
    int updateByUserId(@Param("userId") Long userId,@Param("doctorId") Long doctorId);

    int insertSelective(Attention record);

    Attention selectByPrimaryKey(AttentionKey key);

    int updateByPrimaryKeySelective(Attention record);

    int updateByPrimaryKey(Attention record);
}